package design.patterns.factorymode.web;

import org.springframework.stereotype.Controller;
import design.patterns.factorymode.service.BMW;
import design.patterns.factorymode.service.Benz;
import design.patterns.factorymode.api.CarFactoryInterface;

/**
 * @Description 测试工厂模式.
 * @author: wwchen
 * @DateTime: 2018-07-01 20:07
 */
@Controller
public class FectoryNormal {

    /**
     * 常规的接口实现工厂
     * @param args
     */
    public static void main(String[] args) {
        CarFactoryInterface carFactoryInterface = new BMW();
        carFactoryInterface.manufacture();
        CarFactoryInterface carFactoryInterface2 = new Benz();
        carFactoryInterface2.manufacture();
    }
}
